package com.robot.service.user.impl;

import com.robot.bean.User;
import com.robot.dao.UserRepository;
import com.robot.service.user.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by duqingxiang on 17/5/5.
 */
@Service
public class UserServiceImpl implements UserService {

    @Autowired
    UserRepository userRepository;

    public List<User> findAll(){
        return userRepository.findAll();
    }


}
